package src.ocrs.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FormPanel;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.RadioButton;

public class DataEntry extends Composite {

	public DataEntry() {
		
		FormPanel formPanel = new FormPanel();
		initWidget(formPanel);
		
		FlexTable entryFlexTable = new FlexTable();
		formPanel.setWidget(entryFlexTable);
		entryFlexTable.setSize("100%", "100%");
		
		Label lblCreateNewUser = new Label("CREATE NEW USER (enter info below) ");
		entryFlexTable.setWidget(0, 0, lblCreateNewUser);
		
		Label label = new Label("CREATE NEW USER (enter info below) ");
		entryFlexTable.setWidget(0, 1, label);
		
		Label lblName = new Label("Name");
		entryFlexTable.setWidget(1, 0, lblName);
		
		TextBox nameTextBox = new TextBox();
		entryFlexTable.setWidget(1, 1, nameTextBox);
		
		Label emailLabel = new Label("Email (full)");
		entryFlexTable.setWidget(2, 0, emailLabel);
		
		TextBox emailTextBox = new TextBox();
		entryFlexTable.setWidget(2, 1, emailTextBox);
		
		Label addressLabel = new Label("Street Address");
		entryFlexTable.setWidget(3, 0, addressLabel);
		
		TextBox addressBox = new TextBox();
		entryFlexTable.setWidget(3, 1, addressBox);
		
		Label passwordLabel = new Label("Account Password");
		entryFlexTable.setWidget(4, 0, passwordLabel);
		
		PasswordTextBox passwordTextBox = new PasswordTextBox();
		entryFlexTable.setWidget(4, 1, passwordTextBox);
		
		Label permissLabel = new Label("Permission Level");
		entryFlexTable.setWidget(5, 0, permissLabel);
		
		RadioButton studentToggle = new RadioButton(" studentToggle", "Student");
		entryFlexTable.setWidget(5, 1, studentToggle);
		
		RadioButton instructorToggle = new RadioButton("new name", "New radio button");
		entryFlexTable.setWidget(6, 1, instructorToggle);
		
		RadioButton schoolAdminToggle = new RadioButton("Admin (Academic)", "Admin (Academic)");
		entryFlexTable.setWidget(7, 1, schoolAdminToggle);
		
		RadioButton itAdminToggle = new RadioButton("Admin (IT)", "Admin (IT)");
		entryFlexTable.setWidget(8, 1, itAdminToggle);
	}

}
